<template>
<div class="parkingManage">
	<el-tabs v-model="activeName" @tab-click="handleClick">
	  <el-tab-pane label="合作停车场" name="first"><Cooperation ref="firstMethod"/></el-tab-pane>
	  <el-tab-pane label="第三方停车场" name="second"><Tripartite ref="secondMethod"/></el-tab-pane>

	</el-tabs>
</div>
</template>

<script>
import Cooperation from './cooperation/index.vue'
import Tripartite from './tripartite/index.vue'
import axios from 'axios'
import qs from 'qs'
export default{
	components:{
		Cooperation,
		Tripartite
	},
	name:'parkingManage',
	data(){
		return{
			activeName: 'first',
		}
	},
	mounted(){

	},
	methods:{
		handleClick(tab, event) {
   //      if(tab.index == 0){
			// 	this.$refs.firstMethod.getTableDate();
			// }
	  //       if(tab.index == 1){
	  //       	this.$refs.secondMethod.getTableDate();
	  //       }
      },

	}
}
</script>

<style scoped>
.parkingManage {
	padding: 40px;
}
</style>
